﻿
    @{ 
        ViewBag.Title = "服务元数据";
        var isPjax = !string.IsNullOrEmpty(Context.Request.Headers["X-PJAX"]) && bool.Parse(Context.Request.Headers["X-PJAX"]);
        Layout = isPjax ? null : "_ServiceManageLayout.cshtml";
    }
    <div class="page-header">
        <h1>
            服务管理
            <small>
                <i class="icon-double-angle-right"></i>
                服务元数据
            </small>
        </h1>
        <div class="ace-settings-container">
            <a href="@Context.Request.Headers["Referer"]" class="btn btn-app btn-xs btn-warning ace-settings-btn" data-pjax=".page-content">
                <i class="icon-back bigger-150"></i>
            </a>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div id="sample-table-2_wrapper" class="dataTables_wrapper" role="grid">
                <div class="row">
                    <div class="col-sm-6">
                        <form id="searchForm">
                            关键字：<input type="text" name="queryParam" id="queryParam" placeholder="服务Id">
                            <input type="hidden" name="address" value="@ViewBag.address" />
                            <button id="btnSearch" type="submit" class="btn btn-primary">搜&#12288;索</button>
                        </form>
                    </div>
                </div>
                <div>
                    <table id="dataServiceDescriptor" class="table table-striped table-bordered table-hover dataTable">
                        <thead>
                            <tr role="row">
                                <th style="width: 6%"></th>
                                <th class="center">服务Id</th>
                                <th class="center" width="20%">名称</th>
                                <th class="center" width="6%">是否阻塞</th>
                                <th class="center" width="6%">禁用外网</th>
                                <th class="center" width="6%">是否授权</th>
                                <th class="center" width="12%">负责人</th>
                                <th class="center" width="12%">更新时间</th>
                                <th class="center" width="6%">操作</th>
                            </tr>
                        </thead>
                        <tbody id="">

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
@if (!isPjax)
{
    @section SubFootJS
        {
        <script type="text/javascript">
            seajs.use("apps_servicemange/view/servicedescriptor.guide.js", function(a) {
            a.init({
            });
        });
        </script>
    }
}
else
{
    <script type="text/javascript">
        seajs.use("apps_servicemange/view/servicedescriptor.guide.js", function (a) {
            a.init({
            });
        });
    </script>
}